#include<stdio.h>

int geshu(char* p)
{
    int tem = 0;
        while (*p != '\0')
    {
        p++;
       tem++;
    }


return tem;
}
int main()
{
    int count = 0;
    char input[1000];
    scanf("%s", &input);
     printf("%s\n",&input);
    for(int i=0;i<geshu(input);i++)
    {
        printf("%c ",input[i]);

    }


    return 0;
}



